import request from '@/plugins/request';
// 微信首页配置信息
export function homeInfo(data) {
    return request({
      url: "/v1/system-config/wx-mini-info",
      method: "get",
      params: data,
    });
}
  
  //编辑微信小程序配置
export function homeEdit(data) {
    return request({
        url: "/v1/system-config/edit-wx-mini",
        method: "post",
        data,
    });
}
//上传文件
export function uploadFile(data,that) {
    return request({
        url: "/common/file/upload",
        method: "post",
        isUpload:true,
        data, 
        signal:that.controller.signal,
        onUploadProgress:function(e){
            that.progress=parseInt(e.loaded/e.total*100) 
        }
    });
}